package com.demo.module1.service;

import com.demo.module1.dao.UserDao;
import com.demo.module1.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author n
 */
@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public void save(User user) {
        userDao.add(user);
        int num = 1/0;
        userDao.add(user);
    }
}
